export interface MenuInter {
  id: number
  text: string
  router?: string
  child?: MenuInter[]
}

export type MenuList = MenuInter[]

export function getMenuList() {
  return [
    {
      id: 1,
      text: '日常工作',
      child: [
        {
          id: 10,
          router: '/hooks',
          text: 'hooks测试'
        },
        {
          id: 11,
          router: '/list',
          text: '工程设备巡查'
        },
        {
          id: 12,
          router: '/test1',
          text: '测试菜单12'
        },
        {
          id: 13,
          router: '/test2',
          text: '测试菜单13'
        },
        {
          id: 14,
          router: '/echarts',
          text: 'echarts'
        },
        {
          id: 15,
          router: '/animate',
          text: 'animate'
        },
        {
          id: 16,
          router: '/d3',
          text: 'd3'
        },
        {
          id: 17,
          router: '/value2',
          text: 'value2'
        },
        {
          id: 18,
          router: '/d3Line',
          text: 'd3Line'
        },
        {
          id: 19,
          router: '/gate',
          text: 'gate'
        }
      ]
    },
    {
      id: 2,
      text: '动画测试',
      child: [
        {
          id: 21,
          router: '/scroll',
          text: '测试滚动动画'
        },
        {
          id: 21,
          router: '/animate',
          text: '测试动画'
        },
        {
          id: 22,
          router: '/scroll/position',
          text: '滚动到指定位置'
        },
        {
          id: 23,
          router: '/animate/fireworks',
          text: '烟花动效'
        }
      ]
    },
    {
      id: 3,
      text: 'CSS布局',
      child: [
        {
          id: 31,
          text: 'table布局测试',
          router: '/css/table'
        },
        {
          id: 32,
          text: 'grade布局测试',
          router: '/css/grid'
        },
        {
          id: 33,
          text: '测试菜单13'
        }
      ]
    },
    {
      id: 4,
      text: '异步函数',
      child: [
        {
          id: 41,
          router: '/async/asyncRender',
          text: '异步渲染'
        },
        {
          id: 42,
          text: '菜单管理'
        },
        {
          id: 43,
          text: '角色管理'
        }
      ]
    },
    {
      id: 5,
      text: '电子台账',
      child: [
        {
          id: 51,
          text: '电子台账1'
        },
        {
          id: 52,
          text: '电子台账2'
        },
        {
          id: 53,
          text: '电子台账3'
        }
      ]
    }
  ]
}
